package com.ruoyi.jpbi.service.impl;

import com.ruoyi.jpbi.domain.jianshe.Realcontrolcost;
import com.ruoyi.jpbi.mapper.RealcontrolcostMapper;
import com.ruoyi.jpbi.service.RealcontrolcostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RealcontrolcostServiceImpl implements RealcontrolcostService{
    @Autowired
    RealcontrolcostMapper realcontrolcostMapper;

    @Override
    public List<Realcontrolcost> findAllByUser(Realcontrolcost realcontrolcost) {
        return realcontrolcostMapper.findAllByUser(realcontrolcost);
    }

    @Override
    public int insertRealcontrolcost(Realcontrolcost realcontrolcost) {
        return realcontrolcostMapper.insertRealcontrolcost(realcontrolcost);
    }

    @Override
    public Realcontrolcost findAllById(Long id) {
        return realcontrolcostMapper.findAllById(id);
    }

    @Override
    public int updateRealcontrolcost(Realcontrolcost realcontrolcost) {
        return realcontrolcostMapper.updateRealcontrolcost(realcontrolcost);
    }

    @Override
    public int deleteRealcontrolcost(String ids) {
        return realcontrolcostMapper.deleteRealcontrolcost(ids);
    }
}
